package com.example.lotterysystem.controller.param;

import com.example.lotterysystem.service.enums.UserIdentityEnum;
import lombok.Data;

import java.io.Serializable;

@Data
public class UserLoginParam implements Serializable {
    /**
     * 强制某身份登录，不填不限制身份
     * @see UserIdentityEnum#name()
     * 上面一句表示从 UserIdentityEnum 传入用户身份
     */
    private String mandatoryIdentity;

    public String getMandatoryIdentity() {
        return mandatoryIdentity;
    }

    public void setMandatoryIdentity(String mandatoryIdentity) {
        this.mandatoryIdentity = mandatoryIdentity;
    }
}